// 退保时，必须多险种一起退保

const exRiskCode = { '16520': '同心保目前只支持整单退保。' } // 16520：同心保

export function exitRisks(edorDetailPolPojos, selectedPolList) {
  const res = { flag: true, msg: '' }
  if (edorDetailPolPojos[0].riskCode in exRiskCode && edorDetailPolPojos.length !== selectedPolList.length) {
    res.flag = false
    res.msg = exRiskCode[edorDetailPolPojos[0].riskCode]
    return res
  }
  return res
}

